package com.ly.hotel.common;

public class MyLogsManager {
	
	//系统类
	public static String CLOUD_LOGS_SYSTEM_STARTUP = "ACTION" + "\t" + "系统" + "\t" + "开机";
	public static String CLOUD_LOGS_SYSTEM_SHUTDOWN = "ACTION" + "\t" + "系统" + "\t" + "关机";
	public static String CLOUD_LOGS_SERVER_PING_MS = "ACTION" + "\t" + "系统" + "\t" + "本地服务器延时";
	
	//小圆点类
	public static String CLOUD_LOGS_POINT_HOME = "ACTION" + "\t" + "小圆点" + "\t" + "主页";
	public static String CLOUD_LOGS_POINT_ME = "ACTION" + "\t" + "小圆点" + "\t" + "我";
	public static String CLOUD_LOGS_POINT_CALL = "ACTION" + "\t" + "小圆点" + "\t" + "呼叫";
	public static String CLOUD_LOGS_POINT_CANCLE_CALL = "ACTION" + "\t" + "小圆点" + "\t" + "取消呼叫";
	public static String CLOUD_LOGS_POINT_LIUWEI = "ACTION" + "\t" + "小圆点" + "\t" + "留位";
	public static String CLOUD_LOGS_POINT_SWITCH_LANG = "ACTION" + "\t" + "小圆点" + "\t" + "切换语言";
	public static String CLOUD_LOGS_POINT_BACK = "ACTION" + "\t" + "小圆点" + "\t" + "返回";
	
	//主页类
	public static String CLOUD_LOGS_HOME_PREFIX = "ACTION" + "\t" + "主页_";
//	public static String CLOUD_LOGS_HOME_VOD = "ACTION" + "\t" + "主页_电影";
//	public static String CLOUD_LOGS_HOME_GAME = "ACTION" + "\t" + "主页_游戏";
//	public static String CLOUD_LOGS_HOME_MUSIC = "ACTION" + "\t" + "主页_音乐";
//	public static String CLOUD_LOGS_HOME_INTRO = "ACTION" + "\t" + "主页_介绍";
//	public static String CLOUD_LOGS_HOME_LIVE = "ACTION" + "\t" + "主页_直播";
	
	//主页类
	public static String CLOUD_LOGS_INTRO_PREFIX = "ACTION" + "\t" + "介绍" + "\t";
	
	
	//底部菜单类
	public static String CLOUD_LOGS_BOTTOM_PREFIX = "ACTION" + "\t";
	
	//底部菜单类
	public static String CLOUD_LOGS_UPDATE_FINSH = "ACTION" + "\t" + "升级成功" + "\t";
		
	//呼叫类
	public static String CLOUD_LOGS_CALL_PREFIX = "ACTION" + "\t" + "呼叫" + "\t";
	
	//电影类
	public static String CLOUD_LOGS_VOD_PREFIX = "ACTION" + "\t" + "影视" + "\t";
	public static String CLOUD_LOGS_VOD_MOVIE = "ACTION" + "\t" + "电影";
	public static String CLOUD_LOGS_VOD_TV = "ACTION" + "\t" + "电视剧";
	//电视类
	public static String CLOUD_LOGS_LIVE_PREFIX = "ACTION" + "\t" + "直播" + "\t";
	public static String CLOUD_LOGS_TV_PREFIX = "ACTION" + "\t" + "直播" + "\t";
	public static String CLOUD_LOGS_TV_OSD_CLOSE = "ACTION" + "\t" + "直播全屏" + "\t" + "关闭节目菜单";
	public static String CLOUD_LOGS_TV_OSD_OPEN = "ACTION" + "\t" + "直播全屏" + "\t" + "打开节目菜单";
	
	//游戏类
	public static String CLOUD_LOGS_GAME_PREFIX = "ACTION" + "\t" + "游戏" + "\t";
	
	//应用类
	public static String CLOUD_LOGS_APP_PREFIX = "ACTION" + "\t" + "应用" + "\t";
	
	//优惠类
	public static String CLOUD_LOGS_YOUHUI_PREFIX = "ACTION" + "\t" + "优惠" + "\t";
	
	
	//音乐类
	public static String CLOUD_LOGS_MUSIC_SONG_PREFIX = "ACTION" + "\t" + "音乐" + "\t" + "歌曲" + "\t";
	public static String CLOUD_LOGS_MUSIC_ALBUM_PREFIX = "ACTION" + "\t" + "音乐" + "\t" + "专辑" + "\t";
	public static String CLOUD_LOGS_MUSIC_AREA_PREFIX = "ACTION" + "\t" + "音乐" + "\t" + "歌手类型" + "\t";
	
	//留位类
	public static String CLOUD_LOGS_LIUWEI_WAIT = "ACTION" + "\t" + "留位等待刷卡";
	public static String CLOUD_LOGS_LIUWEI_IN = "ACTION" + "\t" + "进入留位";
	public static String CLOUD_LOGS_LIUWEI_OUT = "ACTION" + "\t" + "退出留位";
	
	//留位类
	public static String CLOUD_LOGS_AD_DOWNLOADING = "ACTION" + "\t" + "广告"  + "\t" + "准备下载" + "\t";
	public static String CLOUD_LOGS_AD_DOWNLOAD_FINISH = "ACTION" + "\t" + "广告"  + "\t" + "下载完成" + "\t";
	public static String CLOUD_LOGS_AD_DOWNLOAD_NO_NEED = "ACTION" + "\t" + "广告"  + "\t" + "使用本地文件" + "\t";
	public static String CLOUD_LOGS_AD_DOWNLOAD_SIZE_INVAILD = "ACTION" + "\t" + "广告"  + "\t" + "文件大小超出范围" + "\t";
	public static String CLOUD_LOGS_AD_DOWNLOAD_FAIL = "ACTION" + "\t" + "广告"  + "\t" + "下载失败" + "\t";
	public static String CLOUD_LOGS_AD_DELETE_INVAILD = "ACTION" + "\t" + "广告"  + "\t" + "从本地服务器删除无效文件" + "\t";
	
	//留位类
	public static String CLOUD_LOGS_BUGS_REPORT_CRASH = "DEBUG" + "%09" + "CRASH"  + "%09";
	public static String CLOUD_LOGS_BUGS_REPORT_ERROR = "DEBUG" + "%09" + "ERROR"  + "%09";
	public static String CLOUD_LOGS_BUGS_REPORT_INFO = "DEBUG" + "%09" + "INFO"  + "%09";

	//消费类
	public static String CLOUD_LOGS_XIAOFEI = "ACTION" + "\t" + "消费" + "\t";

	//技师类
	public static String CLOUD_LOGS_JISHI = "ACTION" + "\t" + "技师" + "\t";

	//语言
	public static String CLOUD_LOGS_SYSTEM_LANGUAGE = "ACTION" + "\t" + "语言" + "\t";
	
	public static String fixClassName(String className){
		
		if(className.contains("IntroActivity")){
			return "介绍";
		}else if(className.contains("JishiWebViewlActivity")){
			return "技师";
		}else if(className.contains("XiaofeiWebViewlActivity")){
			return "消费";
		}else if(className.contains("VodActivity")){
			return "影视";
		}else if(className.contains("LiveActivity")){
			return "直播";
		}else if(className.contains("MusicActivity")){
			return "音乐";
		}else if(className.contains("GameActivity")){
			return "游戏";
		}else if(className.contains("AppActivity")){
			return "应用";
		}else if(className.contains("YouhuiActivity")){
			return "优惠";
		}else if(className.contains("AboutActivity")){
			return "帮助";
		}else if(className.contains("MainActivity")){
			return "主页";
		}else if(className.contains("NativeVideoPlayerActivity")){
			return null;
		}else if(className.contains("TvActivity")){
			return "直播全屏";
		}
		
		return "未知类";
	}
	
	public static String fixFragmentClassName(String className){
		
		if(className == null){
			
		}else{
			if(className.contains("IntroFragment")){
				return "介绍";
			}else if(className.contains("VodFragment")){
				return "影视";
			}else if(className.contains("TvFragment")){
				return "直播全屏";
			}else if(className.contains("MusicFragment")){
				return "音乐";
			}else if(className.contains("GameFragment")){
				return "游戏";
			}else if(className.contains("AppFragment")){
				return "应用";
			}else if(className.contains("YouhuiFragment")){
				return "优惠";
			}else if(className.contains("AboutFragment")){
				return "关于";
			}else if(className.contains("TabHostActivity") || className.contains("HomeFragment")){
				return "主页";
			}else if(className.contains("NativeVideoPlayerActivity")){
				return null;
			}
		}
		return "未知类";
	}
}
